if [ "$1" = "" ]
then
        echo "Debe ingresar el nombre del proyecto (dentro de webapps)"
        exit
fi

./GwtFront-compile
rm -r /server/tomcat/webapps/${1}/
mkdir /server/tomcat/webapps/${1}/
mkdir /server/tomcat/webapps/${1}/WEB-INF
mkdir /server/tomcat/webapps/${1}/WEB-INF/classes
mkdir /server/tomcat/webapps/${1}/WEB-INF/lib
cp lib/* /server/tomcat/webapps/${1}/WEB-INF/lib/
cp web.xml /server/tomcat/webapps/${1}/WEB-INF/
cp -r www/com.project.frba.bifront.GwtFront/* /server/tomcat/webapps/${1}/
cp -r bin/* /server/tomcat/webapps/${1}/WEB-INF/classes
